package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {

    //根据日期查询当前数据是否存在
    Long findCountByOrderDate(Date orderDate);

    //更新可预约人数
    void editNumberByOrderDate(OrderSetting orderSetting);

    //添加操作
    void add(OrderSetting orderSetting);

    //根据日期范围查询数据
    List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);

    //根据日期查询对象
    OrderSetting findByOrderDate(Date date);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);



}
